
import httpRequest from '@/utils/httpRequest'
// 列表
export function getList (data) {
  return httpRequest({
    url: '/led/list',
    method: 'get',
    params: data
  })
}

// 详情
export function getById (data) {
  return httpRequest({
    url: '/led',
    method: 'get',
    params: data
  })
}
// 删除
export function del (data) {
  return httpRequest({
    url: '/led/delete',
    method: 'post',
    data: data
  })
}
// 新增或修改
export function save (data) {
  return httpRequest({
    url: '/led/save',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}

// 修改状态
export function updateState (data) {
  return httpRequest({
    url: '/led/updateStatus',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
